<%--
  Created by IntelliJ IDEA.
  User: bbb
  Date: 2025/4/7
  Time: 17:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>编辑菜单</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            padding: 20px;
        }
        .form-container {
            max-width: 500px;
            margin: 0 auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            font-weight: bold;
            margin-bottom: 5px;
            display: block;
        }
        .form-control {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .btn-primary {
            background-color: #007bff;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            color: #fff;
            cursor: pointer;
        }
        .btn-primary:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <h2>编辑菜单</h2>
        <form action="${pageContext.request.contextPath}/menu/update" method="post">
            <input type="hidden" name="perm_id" value="${acl_permission.perm_id}">
            <div class="form-group">
                <label for="name">菜单名称：</label>
                <input type="text" class="form-control" id="name" name="name" value="${acl_permission.name}" placeholder="请输入菜单名称">
            </div>
            <div class="form-group">
                <label for="path">访问路径：</label>
                <input type="text" class="form-control" id="path" name="path" value="${acl_permission.path}" placeholder="请输入访问路径">
            </div>
            <button type="submit" class="btn btn-primary">保存</button>
        </form>
    </div>
</body>
</html>
